<?php if (!defined('THINK_PATH')) exit();?> <!DOCTYPE html>

<html>

<!--Made By kailuosoft.com, TEL 171 9992 9517 -->

<head>



    <meta charset="utf-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">





    <title></title>

    <meta name="keywords" content="">

    <meta name="description" content="">



    <link rel="shortcut icon" href="favicon.ico"> 
    <link href="/Public/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">

    <link href="/Public/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">

    <link href="/Public/css/plugins/iCheck/custom.css" rel="stylesheet">

    <link href="/Public/css/animate.min.css" rel="stylesheet">

    <link href="/Public/css/style.min862f.css?v=4.1.0" rel="stylesheet">

    <link href="/Public/css/page.css" rel="stylesheet">

    <link href="/Public/css/new.css" rel="stylesheet">

  





  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">










  <script src="/Public/js/jquery.min63b9.js?v=2.1.4"></script>
  <script src="/Public/js/plugins/layer/layer.min.js"></script>
    <script src="/Public/js/bootstrap.min14ed.js?v=3.3.6"></script>
    <script src="/Public/js/plugins/peity/jquery.peity.min.js"></script>
    <script src="/Public/js/content.mine209.js?v=1.0.0"></script>
    <script src="/Public/js/plugins/iCheck/icheck.min.js"></script>
    <script src="/Public/js/demo/peity-demo.min.js"></script>
  <script src="/Public/js/plugins/layer/laydate/laydate.js"></script>
  <script type="text/javascript" src="/Public/js/jquery.imgbox.pack.js"></script>
   <script src="http://cdn.hcharts.cn/highcharts/highcharts.js"></script>






   <script type="text/javascript">


      //传递页码的 js 函数
    function page(nowpage,pagesize){

      if(nowpage)

        $("input[name='nowpage']").val(nowpage);

      if(pagesize)

        $("input[name='pagesize']").val(pagesize);

      $("#searchForm").submit();

    }

    

    function dele(id)

    {

        layer.confirm('确定要删除吗？',

                    {btn:['确定','取消']},

              function(){

                

                location.href="goods_delete/id/"+id

              }),

				  

				  function(){return false;} 

				  

		}

	

	  </script>

	

	</head>



<body class="gray-bg" style="width:1400px; overflow:auto;">

    <div class="wrapper wrapper-content animated fadeInRight">

         

        <div class="row">

            <div class="col-sm-12">

                <div class="ibox float-e-margins">

                    <div class="ibox-title">

                        <h5>产品列表</h5>

                        

                    </div>

                    <div >

                    <form id="searchForm" class="form-inline" method="post" action="" >

                    <div class="row">

                            

                            <div class='search'>

                           <input type="text" name="name" placeholder="按产品名称" <?php if($name != ''): ?>value="<?php echo ($name); ?>"<?php endif; ?> />

                           <!-- <select name="category">
                              <option value="" selected="selected">请选择</option>
                              <option value="1" <?php if($is_recommend == 1): ?>selected<?php endif; ?>>是</option>
                              <option value="2" <?php if($is_recommend == 2): ?>selected<?php endif; ?>>否</option>

                           </select> -->
                                &nbsp;&nbsp;&nbsp;&nbsp;
                               


                              

                            
                               <!--  上传产品系统时间  -->


                              <!--  <input class="form-control input-sm cycle_start" placeholder="按初次合作时间" name='up_time_start' id='start' onClick="laydate({istime: true, format: 'YYYY-MM-DD'})" value="<?php echo ($data['starttime']); ?>">            到

                               <input class="form-control input-sm cycle_end" placeholder="结束时间" name='up_time_end' id='end' onClick="laydate({istime: true, format: 'YYYY-MM-DD'})" value="<?php echo ($data['endtime']); ?>">


                                <select class="form-control" style="margin-top:-5px;" name="platform" id="platform">

                                	<option value="">按客户经理</option> -->

                                	<!--  循环输入平台名称 于选择列表中 -->
                                  

                  <button type="submit" class="btn btn-sm btn-primary"> 搜索</button>



                <a class="btn btn-white btn-sm " href="javascript:window.location.reload(true);" data-toggle="tooltip" data-placement="left"   title="刷新"> <i class="glyphicon glyphicon-repeat"></i> 刷新</a>  

                <!-- <a href="<?php echo U('add');?>" data-toggle="tooltip" data-placement="right" title="新建"> <i class="btn btn-sm btn-primary">新增书籍</i></a>  -->
                  &nbsp;&nbsp;&nbsp;&nbsp;
                


                  

                            </div>

                        </div>

            </form>

            <form action="" method='post' >
                         <input type="hidden" name="nowpage" value="<?php echo ($nowpage); ?>"/>

                        <input type="hidden" name="pagesize" value="<?php echo ($pagesize); ?>"/>

                        <table class="table table-bordered table-striped table-hover">

                            <thead>

                              <tr>

                                <th><input class="check-all" type="checkbox" value=""/></th>

                                <th width="1%">ID</th>
                                <th>产品编号</th>
                                <th>产品名称</th>
                                <th>产品所属类目</th>
                                <th>产品图片</th>
                                <th>产品简介</th>
                                <th>更新时间</th>
                                <th>操作人</th>
                                <th>操作</th>
                              

                              </tr>

                            </thead>

                            <tbody>

                            <!-- 循环列出数据 -->
                              <?php if(is_array($res)): foreach($res as $key=>$goods): ?><tr>

                                    <td>

                                      <input class="i-checks" type="checkbox" name="ids" value="<?php echo ($goods["id"]); ?>" />

                                    </td>
                                    <td><?php echo ($goods["id"]); ?></td>

                                    <td><?php echo ($goods["product_sn"]); ?></td>
                                    <td><?php echo ($goods["name"]); ?></td>
                                    <td><?php echo ($goods["catename"]); ?></td>
                                    <td>
                                      <?php if($goods["product_img"] != ''): ?><img src="/Public/product_img<?php echo ($goods["product_img"]); ?>" height="80">
                                      <?php else: ?>
                                        <font color="purple">暂无商品图片</font><?php endif; ?>
                                    </td>
                                    <td><?php echo ($goods["brief"]); ?></td>
                                    <td><?php echo ($goods["last_update"]); ?></td>
                                   
                                    <td><?php echo ($goods["creator"]); ?></td>
                                   
                                    <td>
                                      <a class="btn btn-sm btn-primary" href="<?php echo U('goods_edit',array('id'=>$goods['id']));?>">编辑</a>
                                      <a class="btn btn-sm btn-primary" href="<?php echo U('goods_del',array('id'=>$goods['id']));?>">删除</a>

                                    </td>

                                </tr><?php endforeach; endif; ?>                           

                            </tbody>

                        </table>

                        <table width="100%" border="0">

                          <tr>

                            <td >

                         <!--   <a class="btn btn-sm btn-primary" title="批量导出" id="daochu_management" >批量导出</a> -->&nbsp;

                          </tr>

                        </table><br/>

             

            </form>




  <br/>

  <br/>

  </div>

  </div>

</div>

                    </div>

                </div>

            </div>

             

        </div>

         

    </div>

    <script src="/Public/js/jquery.min63b9.js?v=2.1.4"></script>

    <script src="/Public/js/bootstrap.min14ed.js?v=3.3.6"></script>

    <script src="/Public/js/plugins/peity/jquery.peity.min.js"></script>

    <script src="/Public/js/content.mine209.js?v=1.0.0"></script>

    <script src="/Public/js/plugins/iCheck/icheck.min.js"></script>

    <script src="/Public/js/demo/peity-demo.min.js"></script>

  <script src="/Public/js/plugins/layer/laydate/laydate.js"></script>

   



    <script>

        $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});

     $(document).ready(function () {

    

            $('.check-all').iCheck({

       



                checkboxClass: 'icheckbox_square-green',

                radioClass: 'iradio_square-green',

            });

        });

    

  

  $(document).ready(function() {

    $('.check-all').on('ifChecked', function(event){ //ifCreated 事件应该在插件初始化之前绑定 

        $('.i-checks').iCheck('check');

      });



    $('.check-all').on('ifUnchecked', function(event){ //ifCreated 事件应该在插件初始化之前绑定 

        $('.i-checks').iCheck('uncheck');

      });

	  

	  

	  

	  

	  $('#finish_All').click(function(){

		    ids='';

		    $('.i-checks').each(function(){

				if($(this).prop('checked'))

				{

					ids+=$(this).val()+',';

				}

			 })

			 if(ids=='')

			 {

				 layer.alert('请选择订单');

				 return false

			 }

		    $(this).attr('href','finishAll?tids='+ids);

			

	  }) 

	  

	  

	  $('#daochu_management').click(function(){

		    ids='';

		    $('.i-checks').each(function(){

				if($(this).prop('checked'))

				{

					ids+=$(this).val()+',';

				}

			 })

       var start = $('#start').val();

       var end = $('#end').val();



			 if(ids==''&&!start&&!end)

			 {

				 layer.alert('请选择产品或选择对应时间段、进行导出');

				 return false

			 }

       if(ids==''){

          $(this).attr('href','<?php echo U("Product/get_xxxxxx_id");?>?start='+start+'&end='+end);

       }else{

          $(this).attr('href','<?php echo U("Product/export_download");?>?source_page=product_circulation&ids='+ids);

       }

		  

			

	  }) 

    

});

    </script>

    <div style="display:none"><script language="javascript" type="text/javascript" src="http://js.users.51.la/17825721.js"></script>

<noscript><a href="http://www.51.la/?17825721" target="_blank"><img alt="&#x6211;&#x8981;&#x5566;&#x514D;&#x8D39;&#x7EDF;&#x8BA1;" src="http://img.users.51.la/17825721.asp" style="border:none" /></a></noscript></div>

</body>

<!--Made By kailuosoft.com, TEL 171 9992 9517 -->

<script  type="text/javascript"  src="http://g.tbcdn.cn/sj/securesdk/0.0.3/securesdk_v2.js"  id="J_secure_sdk_v2" data-appkey="23416550"></script>


<script type="text/javascript">

  function submitTime(){

  }

</script>
<link rel="shortcut icon" href="favicon.ico"> 
    <link href="/Public/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">

    <link href="/Public/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">

    <link href="/Public/css/plugins/iCheck/custom.css" rel="stylesheet">

    <link href="/Public/css/animate.min.css" rel="stylesheet">

    <link href="/Public/css/style.min862f.css?v=4.1.0" rel="stylesheet">

    <link href="/Public/css/page.css" rel="stylesheet">

    <link href="/Public/css/new.css" rel="stylesheet">

  





  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">










  <script src="/Public/js/jquery.min63b9.js?v=2.1.4"></script>
  <script src="/Public/js/plugins/layer/layer.min.js"></script>
    <script src="/Public/js/bootstrap.min14ed.js?v=3.3.6"></script>
    <script src="/Public/js/plugins/peity/jquery.peity.min.js"></script>
    <script src="/Public/js/content.mine209.js?v=1.0.0"></script>
    <script src="/Public/js/plugins/iCheck/icheck.min.js"></script>
    <script src="/Public/js/demo/peity-demo.min.js"></script>
  <script src="/Public/js/plugins/layer/laydate/laydate.js"></script>
  <script type="text/javascript" src="/Public/js/jquery.imgbox.pack.js"></script>
   <script src="http://cdn.hcharts.cn/highcharts/highcharts.js"></script>



</html>